package com.gridmobi.xrtb.model.rtb;

import com.gridmobi.xrtb.model.alg.NativeAdWrapper;

import java.io.Serializable;
import java.util.Date;

public class Campaign implements Serializable {
    private Long id;

    private Date updatetime;
    private Date createtime;


    private Integer state;

    private Integer deleteflag;

    private String inventorytype;

    private String cname;

    private Integer labelid;

    private Integer aid;

    private String landingurl;

    private Integer urlsecured;

    private String exchanges;

    private String advdomain;

    private String iabcats;

    private String buyingstrategy;

    private Float buyingprice;

    private String environment;

    private Float budgetdaily;

    private Float budgetall;


    private Float currentbudgetdaily;

    private Float currentbudgetall;


    private Integer pacingtype;

    private Integer dailyfrequenceuser;

    private String frequencytype;

    private String targetingos;

    private Short osversionmin;

    private Short osversionmax;

    private String devicetype;

    private String connectiontype;

    private String revenuetype;

    private Float revenuevalue;

    private Integer brokenfee;

    private Long brokerfeerate;

    private String aname;

    private String labelname;

    private Float bidPrice;

    /**
     * @see com.gridmobi.xrtb.domain.dsp.common.enums.CreativeTypeE
     */
    private Integer creativeType;
    /**
     * @see com.gridmobi.xrtb.domain.dsp.common.enums.CreativeTypeE
     * 第二匹配素材类型,比如banner图片可以包装成富媒体
     */
    private int secondCreativeType;
    /**
     * 最后Bid展现的素材 和native 素材 or的关系
     */
    private Creative creative;

    private CreativeNative creativeNative;

    private NativeAdWrapper nativeAdWrapper;

    public Float getBidPrice() {
        return bidPrice;
    }

    public void setBidPrice(Float bidPrice) {
        this.bidPrice = bidPrice;
    }

    public NativeAdWrapper getNativeAdWrapper() {
        return nativeAdWrapper;
    }

    public void setNativeAdWrapper(NativeAdWrapper nativeAdWrapper) {
        this.nativeAdWrapper = nativeAdWrapper;
    }

    public Float getCurrentbudgetdaily() {
        return currentbudgetdaily;
    }

    public void setCurrentbudgetdaily(Float currentbudgetdaily) {
        this.currentbudgetdaily = currentbudgetdaily;
    }

    public Float getCurrentbudgetall() {
        return currentbudgetall;
    }

    public void setCurrentbudgetall(Float currentbudgetall) {
        this.currentbudgetall = currentbudgetall;
    }

    public Creative getCreative() {
        return creative;
    }

    public void setCreative(Creative creative) {
        this.creative = creative;
    }

    public String getLabelname() {
        return labelname;
    }

    public void setLabelname(String labelname) {
        this.labelname = labelname;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getDeleteflag() {
        return deleteflag;
    }

    public void setDeleteflag(Integer deleteflag) {
        this.deleteflag = deleteflag;
    }

    public String getInventorytype() {
        return inventorytype;
    }

    public void setInventorytype(String inventorytype) {
        this.inventorytype = inventorytype == null ? null : inventorytype.trim();
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname == null ? null : cname.trim();
    }

    public Integer getLabelid() {
        return labelid;
    }

    public void setLabelid(Integer labelid) {
        this.labelid = labelid;
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public String getLandingurl() {
        return landingurl;
    }

    public void setLandingurl(String landingurl) {
        this.landingurl = landingurl == null ? null : landingurl.trim();
    }

    public Integer getUrlsecured() {
        return urlsecured;
    }

    public void setUrlsecured(Integer urlsecured) {
        this.urlsecured = urlsecured;
    }

    public String getExchanges() {
        return exchanges;
    }

    public void setExchanges(String exchanges) {
        this.exchanges = exchanges == null ? null : exchanges.trim();
    }

    public String getAdvdomain() {
        return advdomain;
    }

    public void setAdvdomain(String advdomain) {
        this.advdomain = advdomain == null ? null : advdomain.trim();
    }

    public String getIabcats() {
        return iabcats;
    }

    public void setIabcats(String iabcats) {
        this.iabcats = iabcats == null ? null : iabcats.trim();
    }

    public String getBuyingstrategy() {
        return buyingstrategy;
    }

    public void setBuyingstrategy(String buyingstrategy) {
        this.buyingstrategy = buyingstrategy == null ? null : buyingstrategy.trim();
    }

    public Float getBuyingprice() {
        return buyingprice;
    }

    public void setBuyingprice(Float buyingprice) {
        this.buyingprice = buyingprice;
    }

    public String getEnvironment() {
        return environment;
    }

    public void setEnvironment(String environment) {
        this.environment = environment == null ? null : environment.trim();
    }

    public Float getBudgetdaily() {
        return budgetdaily;
    }

    public void setBudgetdaily(Float budgetdaily) {
        this.budgetdaily = budgetdaily;
    }

    public Float getBudgetall() {
        return budgetall;
    }

    public void setBudgetall(Float budgetall) {
        this.budgetall = budgetall;
    }

    public Integer getPacingtype() {
        return pacingtype;
    }

    public void setPacingtype(Integer pacingtype) {
        this.pacingtype = pacingtype;
    }

    public Integer getDailyfrequenceuser() {
        return dailyfrequenceuser;
    }

    public void setDailyfrequenceuser(Integer dailyfrequenceuser) {
        this.dailyfrequenceuser = dailyfrequenceuser;
    }

    public String getFrequencytype() {
        return frequencytype;
    }

    public void setFrequencytype(String frequencytype) {
        this.frequencytype = frequencytype == null ? null : frequencytype.trim();
    }

    public String getTargetingos() {
        return targetingos;
    }

    public void setTargetingos(String targetingos) {
        this.targetingos = targetingos == null ? null : targetingos.trim();
    }

    public Short getOsversionmin() {
        return osversionmin;
    }

    public void setOsversionmin(Short osversionmin) {
        this.osversionmin = osversionmin;
    }

    public Short getOsversionmax() {
        return osversionmax;
    }

    public void setOsversionmax(Short osversionmax) {
        this.osversionmax = osversionmax;
    }

    public String getDevicetype() {
        return devicetype;
    }

    public void setDevicetype(String devicetype) {
        this.devicetype = devicetype == null ? null : devicetype.trim();
    }

    public String getConnectiontype() {
        return connectiontype;
    }

    public void setConnectiontype(String connectiontype) {
        this.connectiontype = connectiontype == null ? null : connectiontype.trim();
    }

    public String getRevenuetype() {
        return revenuetype;
    }

    public void setRevenuetype(String revenuetype) {
        this.revenuetype = revenuetype == null ? null : revenuetype.trim();
    }

    public Float getRevenuevalue() {
        return revenuevalue;
    }

    public void setRevenuevalue(Float revenuevalue) {
        this.revenuevalue = revenuevalue;
    }

    public Integer getBrokenfee() {
        return brokenfee;
    }

    public void setBrokenfee(Integer brokenfee) {
        this.brokenfee = brokenfee;
    }

    public Long getBrokerfeerate() {
        return brokerfeerate;
    }

    public void setBrokerfeerate(Long brokerfeerate) {
        this.brokerfeerate = brokerfeerate;
    }

    public String getAname() {
        return aname;
    }

    public void setAname(String aname) {
        this.aname = aname == null ? null : aname.trim();
    }

    public Integer getCreativeType() {
        return creativeType;
    }

    public void setCreativeType(Integer creativeType) {
        this.creativeType = creativeType;
    }

    public CreativeNative getCreativeNative() {
        return creativeNative;
    }

    public void setCreativeNative(CreativeNative creativeNative) {
        this.creativeNative = creativeNative;
    }

    public int getSecondCreativeType() {
        return secondCreativeType;
    }

    public void setSecondCreativeType(int secondCreativeType) {
        this.secondCreativeType = secondCreativeType;
    }
}